<?php

namespace app\admin\model;

use think\Model;

class AdminRole extends Model
{

    protected $table = 'pyg_admin_role'; //用户角色关系表

    //查询角色id
    public static function getRoleId($userId)
    {
        return self::where('uid', $userId)->find();
    }

}
